package cn.mxz.xmu.restful.controller;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 主页控制器，用来测试Tomcat是否启动
 * 
 * @author kangbin <kangbin@mouge.wang>
 * @since 2015-05-09
 */
@Controller
@Scope("session")
public class IndexController
{
	@ResponseBody
	@RequestMapping(value = "/", method = RequestMethod.GET)
	public String index()
	{
		return "Current time is " + System.currentTimeMillis();
	}
}
